package org.example.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("tra_com")
public class TraComment {
    private int id;
    private int uid;
    private String pubtime;
    private String content;

    private int traid;
//    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private String pic;

    @Override
    public String toString() {
        return "TraComment{" +
                "id=" + id +
                ", uid=" + uid +
                ", pubtime='" + pubtime + '\'' +
                ", content='" + content + '\'' +
                ", traid=" + traid +
                ", username='" + username + '\'' +
                ", pic='" + pic + '\'' +
                '}';
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getPubtime() {
        return pubtime;
    }

    public void setPubtime(String pubtime) {
        this.pubtime = pubtime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getTraid() {
        return traid;
    }

    public void setTraid(int traid) {
        this.traid = traid;
    }

}
